extends "../weiershiqinwang-3/weiershiqinwang-3.gd"


var baseId = ""
var upText1 = "遗志献祭的友军半血复活"
var upText2 = "复仇额外提升10%射速"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("本回合每阵亡一名友军，伤害提高20%，上限200%", "复仇")

func _onCharaDel(cha):
	._onCharaDel(cha)
	if cha.team == team:
		var buff = hasBuff("b_weiershi3")
		if buff == null:
			addBuff(b_weiershi3.new())
		elif buff.att.atkR < 2:
			buff.att.atkR += 0.2
			if upgraded == 2:
				buff.att.spd += 0.1
		
class b_weiershi3:
	extends "../../../azurlane_ctrl/AzurBuff.gd"
	func _init():
		attInit()
		id = "b_weiershi3"	
		att.atkR = 0.2
		buffName = "复仇"
		dispel = 2